package design_pattern
// https://juejin.cn/post/6859015515344633863

type Prototype interface {
	clone() Prototype
}
type Message struct {
	Head string
	Body string
}

func (m *Message) clone() Prototype {
	msg:=*m
	return &msg
}
